package com.zhxy.manager.dao;

import com.zhxy.manager.entity.Course;
import com.zhxy.manager.entity.Dormitory;
import com.zhxy.manager.excel.AssociationExcel;
import com.zhxy.manager.excel.DormitoryExcel;

import java.util.List;

/**
 * @author ZM
 */
public interface DormitoryDao {
    //添加
    int add(Dormitory dormitory);
    //查询
    List<Dormitory> selectAll();
    //根据id删除
    int del(int id);

    //修改
    int update(Dormitory dormitory);

    //查询,带条件 动态sql
    List<Dormitory> selectWhere(String name);

    //批量删除
    int delBatch(int[] ids);
    //批量新增
    int addBatch(List<DormitoryExcel> association);
}
